package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;


@ApiModel(description = "信息")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class Message extends BaseBean {

    @ApiModelProperty("信息id")
    private int id;
    @ApiModelProperty("用户id")
    private int to_user;
    @ApiModelProperty("发送者")
    private String frome_user;
    @ApiModelProperty("消息类型")
    private String type;
    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("业务 id")
    private int biz_id;

    @ApiModelProperty("是否阅读 0：否 1：是")
    private int readed;

    @ApiModelProperty("阅读时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date readed_time;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date created_time;
}
